<?php
namespace app\api\controller\yop;

use think\Controller;

use phpmailer\Email;
use customtool\Utils;

class Callback extends Controller {
    // 通知回调
    public function index() {
        $data = input('post.');
        $code = $data['code'];
        Utils::log('api/yop/callback/index', '异步回调客户端接收成功返回SUCCESS', json_encode($data, 320));
        if($code == '1000') {
            return 'SUCCESS'; 
        } else {
            return null;
        }
    }
}

